package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单详情对象 oblist_detail
 * 
 * @author ruoyi
 * @date 2025-09-02
 */
public class OblistDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 出货单ID，对应obLIST表 */
    @Excel(name = "出货单ID，对应obLIST表")
    private Long listid;

    /** 商品ID，对应goods表 */
    @Excel(name = "商品ID，对应goods表")
    private Long goodsid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Double goodsNum;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private String goodsUnit;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 库存 */
    @Excel(name = "库存", width = 30)
    private double stock;

    private String imageUrl;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setListid(Long listid) 
    {
        this.listid = listid;
    }

    public Long getListid() 
    {
        return listid;
    }

    public void setGoodsid(Long goodsid) 
    {
        this.goodsid = goodsid;
    }

    public Long getGoodsid() 
    {
        return goodsid;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsNum(Double goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Double getGoodsNum() 
    {
        return goodsNum;
    }

    public void setGoodsUnit(String goodsUnit) 
    {
        this.goodsUnit = goodsUnit;
    }

    public String getGoodsUnit() 
    {
        return goodsUnit;
    }

    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }

    public double getStock() {
        return stock;
    }

    public void setStock(double stock) {
        this.stock = stock;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("listid", getListid())
            .append("goodsid", getGoodsid())
            .append("goodsName", getGoodsName())
            .append("goodsNum", getGoodsNum())
            .append("goodsUnit", getGoodsUnit())
            .append("remark", getRemark())
            .append("ctime", getCtime())
            .toString();
    }
}
